FlowPosition
Represents a workflow position in the system, encapsulating properties and methods to manage the workflow step logic.
Properties
| Name | Description |
|---|---|
| TimeoutOptions | Options defining the timeout behavior for the flow position. |
| Caption | The caption dictionary representing localized captions for the flow object. |
| EnablePushNotification | Gets or sets a value indicating whether push notification is enabled. |
| ShowInFlowHistory | Specifies if the position should be visible in the flow history. |
| HideApporoverInHistory | Determines whether the approver should be hidden in the flow history. |
| TimeoutHour | The number of hours set for the timeout duration. |
| GeolocationOptions | Geolocation-related options for the flow position. |
| Id | The unique identifier of the flow position. |
| NotificationMessage | Gets the notification message associated with the message. |
| ValueType | Indicates the type of the flow position, such as user or initiator. |
| EventsToCheck | A list of event names to monitor for the flow position. |
| MailSubject | Gets the mail subject associated with the message. |
| Key | A unique identifier for the workflow step. |
| AutoOpenApprovalOption | Automatically opens approval options for the current position. |
| TimeoutMinute | The number of minutes set for the timeout duration. |
| Code | The code associated with the flow position, typically representing a username. |
| Name | Name for the workflow step. |
| EnableSendMail | Gets or sets a value indicating whether sending mail is enabled. |
| Events | A read-only list of events related to the flow position. |
| MailMessage | Gets the mail message associated with the message. |
| TimeoutDuration | The total timeout duration in a TimeSpan format. |
| IsCustomMailMessage | Gets or sets a value indicating whether the mail message is custom. |
| CustomMailMessage | Gets the custom mail message associated with the message. |
| MessageOptions | Gets or sets the message options. |
| RequestIsNecessaryIfDocumentChanged | Requires approval if the associated document has been modified. |
| The email address linked to the current flow position. | |
| Description | A descriptive name for the flow position, often combining first and last names. |
| WorkflowCodeInstance | The workflow code instance associated with the flow object. |
| Documents | A list of documents associated with the flow position. |
| CachedDMObjects | The cached document management objects related to the flow object. |
| WebNotificationOptions | Gets or sets the web notification options. |
| NotificationCaption | Gets the notification caption associated with the message. |
| Attachments | Gets the list of attachments associated with the message. |
| ForwardingOptions | Options defining forwarding behavior for the flow position. |
| TypeCode | The type code associated with the flow object. |
| DoNotSendRequestIfProcessed | Indicates whether a request should be avoided if already processed. |
| CalculateUsingHolidays | Specifies if holiday calculations should be included in timeouts. |
| TimeoutDay | The number of days set for the timeout duration. |
| CalculateUsingWorkingHours | Specifies if working hours should be considered in timeout calculations. |
| NotificationOptions | Gets or sets the push notification options. |
Constructors
| Name | Description |
|---|---|
| FlowPosition(name, workflowData, workflowCodeInstance) | Constructor for the FlowPosition class. Initializes a new instance of the FlowPosition class. |
| FlowPosition(name,workflowData,workflowCodeInstance) | Initializes a new instance of the FlowPosition class. |
| FlowPosition(name, workflowData, workflowCodeInstance) | Initializes a new instance of the FlowPosition class with a name, workflow data, and workflow code instance. |
Methods
| Name | Description |
|---|---|
| GetUserInfo() | Retrieves the user information for the flow position. |
| SendApprovalWebNotification(userInfo, requestItem) | Sends a web notification for approval based on the provided process request and user information. |
| SetConstantPosition(id, code, description) | Assigns a constant position to the flow position. |
| AddDocument(flowDocument, viewName, viewId, panelSize, allowEdit, showEvents) | Adds a document to the flow position with optional view and display settings. |
| SetConstantUser(id, userName, fullName) | Assigns a constant user to the flow position. |
| SetFromPosition(positionId) | Assigns a position to the flow position based on the position ID. |
| SetUserFromFlowInitiator() | Sets the flow position user from the flow initiator. |
| SendWebNotification(payloadType,userInfo,requestItem) | Sends a web notification to a user. |
| SetUserFromFlowInitiatorManager(managerKey) | Sets the flow position user from the flow initiator's manager. |
| SetFromUser(userId) | Assigns a user to the flow position based on the user ID. |
| SetManagerUserAccordingToProfession(managerKey, professionName, targetPosition, sourcePosition, titleType, flowAssign) | Sets a manager user for the flow position according to profession criteria. |
| GetUserInfoWithPositionId() | Retrieves the user information along with the position ID for the flow position. |
| SendRequestTimedOutWebNotification(userInfo, requestItem) | #import (Bimser.CSP.Workflow.Api.Steps.FlowGroup.SendRequestTimedOutWebNotification(UserInfo,ProcessRequestItem)) (shortDescription) |
| SetManagerUserFromUser(managerProfile, sourcePosition) | Assigns a manager user to the flow position based on a manager profile. |
| SetVariablePosition(position) | Assigns a variable position to the flow position using another flow position. |
| SetReferredUser(user) | Sets a referred user for the flow position. |
| SetUserFromVariable(sourceVariable) | Assigns a user to the flow position based on a variable. |
| SendMail(requestItem, userInfo) | Sends an email notification based on the provided process request and user information. |
| SetUserFromLogonUser() | Sets the flow position user from the currently logged-on user. |
| Initialize() | Initializes the flow position with default settings. |
| SetUserFromImpersonatingUser() | Sets the flow position user from the impersonating user. |
| SetConstantPosition(constantPosition) | Assigns a constant position to the flow position using another flow position. |
| RemoveDocument(flowDocument) | Removes a document from the flow position. |
| ToLiquid() | Converts the flow position into a format compatible with Liquid templates. |
| AddAttachment(value,type) | Adds an attachment to the mail message. |
| SetPositionFromVariable(sourceVariable, sourceProperty) | Assigns a position to the flow position based on a variable and source property. |
| SetDepartmentManagerUserFromDepartment(sourceDepartment) | Sets a department manager user for the flow position based on a department. |
| SendPushNotification(userInfo,requestItem) | Sends a push notification to a user. |
Events
| Name | Description |
|---|---|
| OnAfterExecution(sender, args) | Occurs after the execution of the workflow step. |
| OnBeforeExecution(sender, args) | Occurs before the execution of the workflow step. |